<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/4/9 0009
 * Time: 下午 5:45
 */

namespace app\sports_admin\controller;

use app\sports_admin\service\WatchMonitoring as WatchMonitoringService;
use app\sports_admin\model\School as SchoolModel;
class WatchMonitoring extends Base
{
    /**
     * 检测信息首页
     */
    public function index()
    {
        //获取所有学校
       // $school = SchoolModel::field('school_id,school_name')->select();
        //return view('index',compact('school'));
        return view('index');
    }
    /**
     * 获取检测信息
     */
    public function listInfo()
    {
        return WatchMonitoringService::listInfo();
    }
}